#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui/QMainWindow>
#include <QtGui/QDialog>
#include <QtGui/QCalendarWidget>

#include "note.h"
#include "editItemDialog.h"

namespace Ui {
    class CalendarShowWindow;
}

class CalendarShowWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit CalendarShowWindow(QWidget *parent = 0);
    ~CalendarShowWindow();
    NoteItemMap * getItemMap();//return ui_editItemDialog's _pItemMap
    void backupData(QString fileName="noteData.ldc");
    void reloadData(QString fileName="noteData.ldc");
    void update();

private slots:
    void slotClickedDate(QDate _date);//clicked date
    void slotAddNoteItem(QDate _date);//double clicked date
private:
    QIcon  _icon;
    NoteItemOneDay * _pItemOneDay;
    QDate  _selectedData;
public:
    editItemDialog * ui_editItemDialog;

private:

    Ui::CalendarShowWindow *ui;
};

#endif // MAINWINDOW_H
